package com.banmao.algorithm.No901To1100.No1038;


import com.banmao.algorithm.utils.GenerateTreeUtil;
import com.banmao.algorithm.utils.vo.TreeNode;

public class Answer {

    public static void main(String[] args) {

        TreeNode root = GenerateTreeUtil.generateTree2("4,1,6,0,2,5,7,#,#,#,3,#,#,#,8");

        Solution solution = new Solution();
        TreeNode treeNode = solution.bstToGst(root);

        System.out.println(treeNode.getSerialize());

    }

}
